package com.letv.whatslive.model;

import com.letv.whatslive.common.utils.DateUtils;
import lombok.Getter;
import lombok.Setter;

import static com.letv.whatslive.common.utils.DateUtils.*;

//2015.11.4

/**
 * 渠道表
 * Created by shenyue on 15-11-4.
 */
@Getter
@Setter
public class StartImageSrcForCmsShow {

    public StartImageSrcForCmsShow(){

    }

    public StartImageSrcForCmsShow(Start_ImageSrc startImageSrc){
        this.id = startImageSrc.getId();
        this.picType=startImageSrc.getPicType();

        //this.picCode=startImageSrc.getPicCode();

        this.picName=startImageSrc.getPicName();

        this.picSpec=startImageSrc.getPicSpec();

        this.picUrl=startImageSrc.getPicUrl();

        this.adUrl=startImageSrc.getAdUrl();

        this.createTime=startImageSrc.getCreateTime();

        this.createTimeStr= DateUtils.long2YMDHMS(createTime);

        this.isOpen=startImageSrc.getIsOpen();

        this.phoneType=startImageSrc.getPhoneType();

        this.updateTime=startImageSrc.getUpdateTime();

        this.updateTimeStr =DateUtils.long2YMDHMS(updateTime);

        this.startTime=startImageSrc.getStartTime();

        this.startTimeStr =DateUtils.long2YMDHMS(startTime);

        this.endTime=startImageSrc.getEndTime();

        this.endTimeStr =DateUtils.long2YMDHMS(endTime);

        this.showTime=startImageSrc.getShowTime();

        this.type=startImageSrc.getType();

        this.busiId=startImageSrc.getBusiId();

    }



    private Long id;

    private Integer picType;

    private String picCode;

    private String picName;

    private String picSpec;

    private String picUrl;

    private String adUrl;//广告商Url

    private Long createTime;

    private String createTimeStr;

    private Integer isOpen;

    private Integer phoneType;

    private Long updateTime;

    private String updateTimeStr;

    private Long startTime;

    private String startTimeStr;

    private Long endTime;

    private String endTimeStr;

    private Long showTime;

    /**
     * 广告图类型：0为H5,1为直播,2录播,3活动页面
     * PS：在cms中，直播和录播统一为1，调用接口时根据查询直播的状态去返回相应的状态
     */
    private Integer type;

    //根据type不同，busiId可能是直播录播id，活动id
    private String busiId;




}

